package com.aqian.theme.color.happy.ui.viewmodel

import androidx.lifecycle.ViewModel
import com.aqian.theme.color.happy.data.model.Theme
import com.aqian.theme.color.happy.data.model.ThemeMockData
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asStateFlow

class HomeViewModel : ViewModel() {
    private val _themes = MutableStateFlow<List<Theme>>(emptyList())
    val themes: StateFlow<List<Theme>> = _themes.asStateFlow()

    init {
        loadThemes()
    }

    private fun loadThemes() {
        _themes.value = ThemeMockData.mockThemes
    }
}
